<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>元素显示方式</title>
    <style>
      input, span {
        border: 1px solid slateblue;
      }
      input {
        width: 100px;
        height: 100px;
      }
      #s1 {
        display: inline-block;
        width: 100px;
        height: 100px;
      }
      #s2 {
        display: none; /*隐藏内容 原来的空间不再占用*/
      }
      #s4 {
        visibility: hidden;/*隐藏内容 原来的空间仍然占用*/
      }
      div {
        border: 1px solid red;
      }
      #d1 {
        border: 1px solid green;
        color: slateblue;
        height: 200px;
      }
    </style>
</head>
<body>
  <input type="text">
  <input type="button" value="按钮">
  <span id="s1">span1</span>
  <span id="s2">span2</span>
  <span>span3</span>
  <span id="s4">span4</span>
  <span>span5</span>
  <div>层叠性</div>
  <div id="d1">
    外层DIV
    <div id="d2">内层DIV</div>
  </div>
</body>
</html>